package com.lin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 林伟鸿
 * @since 2021-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

        /**
     * 用户编号
     */
         @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

        /**
     * 账号
     */
         private String userName;

        /**
     * 密码
     */
         private String password;

        /**
     * 昵称
     */
         private String nickName;

        /**
     * 角色(0为普通人员，1为管理员)
     */
         private Integer role;

        /**
     * 邮箱
     */
         private String email;

        /**
     * 电话号码
     */
         private String phone;


}
